package kuzha.ast;
import kuzha.KuzhaObject;
import kuzha.runtime.Operator;

public class Constant extends Literal {
	public final KuzhaObject value;
	
	public Constant(KuzhaObject value) {
		super();
		this.value = value;
	}
	
	@Override
	public void accept(AstVisitor visitor) {
		visitor.visit(this);
	}
	@Override
	public <A, R> R accept(AstVisitor2<A, R> visitor, A object) {
		return visitor.visit(this, object);
	}
	
	@Override
	public String toString() {
		return Operator.toString(value);
	}
}
